package com.yh.csx.crm.core.enums;

public enum  CustPri2PubEnum {

    /** 强制跑批条件：最后一次下单 大于这个周期 强制转公海 **/
    LASTORDER_CYCLE ( "365"  , "最后一次下单至今的周期" ),
    /** 强制跑批条件：最后一次拜访 大于这个周期 强制转公海 **/
    LASTVISIT_CYCLE ( "45" , "最后一次下单至今的周期" ),
    /** 强制跑批条件：应收账款大于这个 额度 强制转公海 **/
    AC_ALL( "0" , "应收账款额度");

    private String code;
    private String msg;

    CustPri2PubEnum() {

    }

    CustPri2PubEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static CustPri2PubEnum get(String code) {
        for (CustPri2PubEnum custPri2PubEnum: CustPri2PubEnum.values()) {
            if (custPri2PubEnum.code.equals(code)) {
                return custPri2PubEnum;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

